.class public abstract Lcom/esfile/screen/recorder/player/h;
.super Landroid/widget/FrameLayout;
.source "BaseMediaPlayer.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/player/h$c;
    }
.end annotation


# instance fields
.field protected a:I

.field protected b:Landroid/animation/ObjectAnimator;

.field protected c:Z

.field protected d:Z

.field private e:Z

.field protected f:Landroid/os/Handler;

.field protected g:Lcom/esfile/screen/recorder/player/h$c;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, p1, v0}, Lcom/esfile/screen/recorder/player/h;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const/4 v0, 0x0

    .line 2
    invoke-direct {p0, p1, p2, v0}, Lcom/esfile/screen/recorder/player/h;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0

    .line 3
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const/4 p1, 0x2

    .line 4
    iput p1, p0, Lcom/esfile/screen/recorder/player/h;->a:I

    const/4 p1, 0x1

    .line 5
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/player/h;->e:Z

    .line 6
    new-instance p1, Landroid/os/Handler;

    new-instance p2, Lcom/esfile/screen/recorder/player/h$a;

    invoke-direct {p2, p0}, Lcom/esfile/screen/recorder/player/h$a;-><init>(Lcom/esfile/screen/recorder/player/h;)V

    invoke-direct {p1, p2}, Landroid/os/Handler;-><init>(Landroid/os/Handler$Callback;)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/player/h;->f:Landroid/os/Handler;

    return-void
.end method

.method private i()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/h;->b:Landroid/animation/ObjectAnimator;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->removeAllListeners()V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/h;->b:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->end()V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/h;->b:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->cancel()V

    const/4 v0, 0x0

    .line 5
    iput-object v0, p0, Lcom/esfile/screen/recorder/player/h;->b:Landroid/animation/ObjectAnimator;

    :cond_0
    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 11
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/player/h;->c:Z

    if-eqz v0, :cond_0

    .line 12
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/h;->b()V

    :cond_0
    return-void
.end method

.method public a(I)V
    .locals 4

    .line 1
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/player/h;->c:Z

    if-nez v0, :cond_0

    .line 2
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/h;->g()V

    .line 3
    :cond_0
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/h;->h()V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/h;->f:Landroid/os/Handler;

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/h;->f:Landroid/os/Handler;

    const-wide/16 v2, 0x32

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/h;->f:Landroid/os/Handler;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 7
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/player/h;->e:Z

    if-eqz v0, :cond_1

    if-eqz p1, :cond_1

    .line 8
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/h;->f:Landroid/os/Handler;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v0

    .line 9
    iget-object v1, p0, Lcom/esfile/screen/recorder/player/h;->f:Landroid/os/Handler;

    int-to-long v2, p1

    invoke-virtual {v1, v0, v2, v3}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    :cond_1
    return-void
.end method

.method public a(Z)V
    .locals 0

    .line 10
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/player/h;->e:Z

    return-void
.end method

.method protected b()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/h;->b:Landroid/animation/ObjectAnimator;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->isRunning()Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    :cond_0
    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/player/h;->c:Z

    .line 3
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/h;->getMediaController()Landroid/view/View;

    move-result-object v1

    const/4 v2, 0x1

    new-array v2, v2, [F

    const/4 v3, 0x0

    aput v3, v2, v0

    const-string v0, "alpha"

    invoke-static {v1, v0, v2}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/player/h;->b:Landroid/animation/ObjectAnimator;

    const-wide/16 v1, 0x12c

    .line 4
    invoke-virtual {v0, v1, v2}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/h;->b:Landroid/animation/ObjectAnimator;

    new-instance v1, Lcom/esfile/screen/recorder/player/h$b;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/player/h$b;-><init>(Lcom/esfile/screen/recorder/player/h;)V

    invoke-virtual {v0, v1}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/h;->b:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V

    return-void
.end method

.method protected abstract c()Z
.end method

.method public d()V
    .locals 0

    return-void
.end method

.method protected abstract e()V
.end method

.method public f()V
    .locals 2

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/player/h;->a:I

    const/4 v1, 0x3

    if-eq v0, v1, :cond_1

    const/4 v1, 0x4

    if-eq v0, v1, :cond_1

    .line 2
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/h;->c()Z

    move-result v0

    if-nez v0, :cond_0

    goto :goto_0

    :cond_0
    const/16 v0, 0xbb8

    goto :goto_1

    :cond_1
    :goto_0
    const/4 v0, 0x0

    .line 3
    :goto_1
    invoke-virtual {p0, v0}, Lcom/esfile/screen/recorder/player/h;->a(I)V

    return-void
.end method

.method protected g()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/h;->b:Landroid/animation/ObjectAnimator;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->isRunning()Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/h;->getMediaController()Landroid/view/View;

    move-result-object v0

    if-nez v0, :cond_1

    return-void

    :cond_1
    const/4 v0, 0x1

    .line 3
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/player/h;->c:Z

    .line 4
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/h;->getMediaController()Landroid/view/View;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 5
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/h;->getMediaController()Landroid/view/View;

    move-result-object v1

    new-array v0, v0, [F

    const/high16 v3, 0x3f800000    # 1.0f

    aput v3, v0, v2

    const-string v2, "alpha"

    invoke-static {v1, v2, v0}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/player/h;->b:Landroid/animation/ObjectAnimator;

    const-wide/16 v1, 0x12c

    .line 6
    invoke-virtual {v0, v1, v2}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/h;->b:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V

    return-void
.end method

.method protected abstract getMediaController()Landroid/view/View;
.end method

.method protected getUpdatePlayTime()I
    .locals 1

    const/16 v0, 0xc8

    return v0
.end method

.method protected abstract h()V
.end method

.method protected onDetachedFromWindow()V
    .locals 2

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/h;->i()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/h;->f:Landroid/os/Handler;

    if-eqz v0, :cond_0

    const/4 v1, 0x0

    .line 3
    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacksAndMessages(Ljava/lang/Object;)V

    .line 4
    :cond_0
    invoke-super {p0}, Landroid/widget/FrameLayout;->onDetachedFromWindow()V

    return-void
.end method

.method public setOnControllerVisibilityChangeListener(Lcom/esfile/screen/recorder/player/h$c;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/h;->g:Lcom/esfile/screen/recorder/player/h$c;

    return-void
.end method
